/**
 * 页面路由跳转
 */

export default function routerMixin(Ctor) {
  Ctor.prototype.navigateTo = function (route) {
    Ctor.prototype.dispatchs.dispatchRouter(route);
  };

  Ctor.prototype.redirectTo = function (route) {
    Ctor.prototype.dispatchs.dispatchRouter(route, 'replace');
  };
}
